using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using WebFramework;
using MyCityCab.Core.View;

public partial class _controls_Share_DefineRoute : UserControlBase, IRouteView
{
    protected void Page_Load(object sender, EventArgs e)
    {

    }

    #region IRouteView Members

    public int CountryId
    {
        get {
            return Convert.ToInt32(ddlCountry.SelectedValue);
        }
    }

    public string FromCityName
    {
        get { return txtCityFrom.Text; }
    }

    public string FromRegionName
    {
        get { return txtRegionFrom.Text; }
    }

    public string FromAddress
    {
        get { return txtPlaceMarkerFrom.Text; }
    }

    public string ToCityName
    {
        get { return txtCityTo.Text; }
    }

    public string ToRegionName
    {
        get { return txtRegionTo.Text; }
    }

    public string ToAddress
    {
        get { return txtPlaceMarkerTo.Text; }
    }

    #endregion
}
